package 迭代器;

import java.util.Iterator;

public class InfoCollege implements College{
    DepartMent [] departMents = new DepartMent[10];
    int count = 0;

    public InfoCollege() {
        departMents[count++] = new DepartMent("第一个专业");
        departMents[count++] = new DepartMent("第二个专业");
    }

    @Override
    public String CollegeName() {
        return "大数据系";
    }

    @Override
    public Iterator getCollegeIterator() {
        return new InfoCollegeIterator(departMents,count);
    }
}
